package com.edu.entity.user;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: LuckyBear
 * @date: 2018-11-01 10:33
 * @description:
 */
public class EduUser {
    private Integer id;     //主键
    private String username;        //用户名
    private String password;        //密码
    private String telephone;       //联系电话
    private Integer sex;        //性别（1：男；2：女）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date brithday;  //生日
    private String picture;     //头像图片
    private Integer qq;     //qq号码
    private String brief;       //简介
    private String email;       //电子邮箱
    private String address;     //地址
    private Integer member;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    private Integer level;
    private Integer lock;
    private Integer frozen;
    private Integer Jurisdiction;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastime;
    private Integer currency;

    public EduUser() {
    }

    public EduUser(Integer id, String username, String password, String telephone, Integer sex, Date brithday, String picture, Integer qq, String brief, String email, String address, Integer member, Date createtime, Integer level, Integer lock, Integer frozen, Integer jurisdiction, Date lastime, Integer currency) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.telephone = telephone;
        this.sex = sex;
        this.brithday = brithday;
        this.picture = picture;
        this.qq = qq;
        this.brief = brief;
        this.email = email;
        this.address = address;
        this.member = member;
        this.createtime = createtime;
        this.level = level;
        this.lock = lock;
        this.frozen = frozen;
        Jurisdiction = jurisdiction;
        this.lastime = lastime;
        this.currency = currency;
    }

    public EduUser(String username, String password, String telephone, Integer sex, Date brithday, String picture, Integer qq, String brief, String email, String address, Integer member, Date createtime, Integer level, Integer lock, Integer frozen, Integer jurisdiction, Date lastime, Integer currency) {
        this.username = username;
        this.password = password;
        this.telephone = telephone;
        this.sex = sex;
        this.brithday = brithday;
        this.picture = picture;
        this.qq = qq;
        this.brief = brief;
        this.email = email;
        this.address = address;
        this.member = member;
        this.createtime = createtime;
        this.level = level;
        this.lock = lock;
        this.frozen = frozen;
        Jurisdiction = jurisdiction;
        this.lastime = lastime;
        this.currency = currency;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBrithday() {
        return brithday;
    }

    public void setBrithday(Date brithday) {
        this.brithday = brithday;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getQq() {
        return qq;
    }

    public void setQq(Integer qq) {
        this.qq = qq;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getMember() {
        return member;
    }

    public void setMember(Integer member) {
        this.member = member;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getLock() {
        return lock;
    }

    public void setLock(Integer lock) {
        this.lock = lock;
    }

    public Integer getFrozen() {
        return frozen;
    }

    public void setFrozen(Integer frozen) {
        this.frozen = frozen;
    }

    public Integer getJurisdiction() {
        return Jurisdiction;
    }

    public void setJurisdiction(Integer jurisdiction) {
        Jurisdiction = jurisdiction;
    }

    public Date getLastime() {
        return lastime;
    }

    public void setLastime(Date lastime) {
        this.lastime = lastime;
    }

    public Integer getCurrency() {
        return currency;
    }

    public void setCurrency(Integer currency) {
        this.currency = currency;
    }

    @Override
    public String toString() {
        return
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", telephone='" + telephone + '\'' +
                ", sex=" + sex +
                ", brithday=" + brithday +
                ", picture='" + picture + '\'' +
                ", qq=" + qq +
                ", brief='" + brief + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", member=" + member +
                ", createtime=" + createtime +
                ", level=" + level +
                ", lock=" + lock +
                ", frozen=" + frozen +
                ", Jurisdiction=" + Jurisdiction +
                ", lastime=" + lastime +
                ", currency=" + currency +
                '}';
    }
}
